package com.github.pudding.model;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.math.BigDecimal;

@Data
@ToString
@Document(collection = "goods")
public class Goods {
    @Id
    private String id;
    private String name;
    private String desc;
    @Indexed
    @Field(value = "origin_area")
    private String originArea;
    private BigDecimal price;
    private String currency;
}